package com.webserver.vo;

import com.sun.security.ntlm.Server;

import java.io.Serializable;
import java.net.Socket;

/**
 * VO   value object值对象
 * 该类的每一个实例用于表示一组信息的
 *
 * User 用户对象
 * 该类的每一个实例用于表示一个用户信息
 *
 */
public class User implements Serializable {
    private  String username;
    private  String password;
    private  String nickname;
    private  int age;

    public User (){
    }

    public User(String username, String password, String nickname, int age) {
        this.username = username;
        this.password = password;
        this.nickname = nickname;
        this.age = age;
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }

    public String getNickname() {
        return nickname;
    }

    public int getAge() {
        return age;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", nickname='" + nickname + '\'' +
                ", age=" + age +
                '}';
    }
}
